<!--#layout("/common/layout.html",{"jsBase":"/js/admin/role/"}){ -->
<form class="layui-form layui-form-pane">
	<div class="layui-row">
		<div class="layui-col-xs4" >
			<div class="site-block" style="height:500px;overflow:auto; ">
				<!--#
				var roles = core.roles("R0");
				for(role in roles){
					if(userId ==1){
				-->
				<input type="radio" name="roleId" value="${role.id}" title="${role.name}" checked="" lay-filter="roleId"><br>
				<!--#
					}else{
                    	if(role.id !=1 ){
                -->
				<input type="radio" name="roleId" value="${role.id}" title="${role.name}" checked="" lay-filter="roleId"><br>
				<!--#	}
            		}
       			 }-->
			</div>
		</div>
		<div class="layui-col-xs8">
			<div class="site-block" style="height:500px;overflow:auto; ">
				<div id="functionTree" class='ztree'></div>
			</div>
		</div>
	</div>
</form>
<div class="layui-row">
	<div class="layui-form-item" style="margin: 10px 0;width: 98%;text-align: center; bottom:10px;">
		<button class="layui-btn layui-btn-normal" type="button" id="save" lay-submit="" lay-filter="form">保存</button>
	</div>
</div>

<!--#} -->
<script>

layui.use(['roleFn'], function(){
  var index = layui.roleFn
  index.init();
});

</script>
